package com.wisdytech.linkdcs.equipment.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author Yanghu
 * @since 2017-09-16
 */
@TableName("tt_eq_alarm_record")
public class AlarmRecord extends Model<AlarmRecord> {

    private static final long serialVersionUID = 1L;
    @TableId("PK_ID")
	private String pkId;
	@TableField("ALARM_PARAM_ID")
	private String alarmParamId;
	@TableField("ERROR_VALUE")
	private Double errorValue;
	@TableField("START_TIME")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
	private Date startTime;
	@TableField("END_TIME")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
	private Date endTime;
	@TableField("REASON")
	private String reason;
	@TableField("IS_END")
	private String isEnd;
	@TableField("STATUS")
	private Integer status;

    @TableField("PROCESS_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private Date processTime;

    /**
     * 告警持续时长
     */
    @TableField(exist=false)
    private Integer duration;
	/**
	 * 减少time字段
	 */
	
	/**
     * 删除标记
     */
    @TableField("DEL_FLAG")
    private String delFlag;
    /**
     * 记录创建人
     */
    @TableField("CREATE_USER")
    private String createUser;
    /**
     * 记录创建时间
     */
    @TableField("CREATE_DATE")
    private Date createDate;
    /**
     * 记录更新人
     */
    @TableField("UPDATE_USER")
    private String updateUser;
    /**
     * 记录更新时间
     */
    @TableField("UPDATE_DATE")
    private Date updateDate;
    /**
     * 备注
     */
    @TableField("REMARK")
    private String remark;
    
    
    /**
     * 
     */
    @TableField(exist=false)
    private String modelCode;
    
    /**
     * 
     */
    @TableField(exist=false)
    private String eqCode;
    
    /**
     * 
     */
    @TableField(exist=false)
    private String eqId;
    
    
    /**
     * 
     */
    @TableField(exist=false)
    private String eqName;

    /**
     * 
     */
    @TableField(exist=false)
    private String paramName;
    
    /**
     * 参数单位
     */
    @TableField(exist=false)
    private String paramUnit;
    

    /**
     * 
     */
    @TableField(exist=false)
    private String paramPromptName;

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getPkId() {
		return pkId;
	}

	public void setPkId(String pkId) {
		this.pkId = pkId;
	}
	
	public Double getErrorValue() {
        return errorValue;
    }

    public void setErrorValue(Double errorValue) {
        this.errorValue = errorValue;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getIsEnd() {
        return isEnd;
    }

    public void setIsEnd(String isEnd) {
        this.isEnd = isEnd;
    }

    public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	
	
	

	public String getAlarmParamId() {
        return alarmParamId;
    }

    public void setAlarmParamId(String alarmParamId) {
        this.alarmParamId = alarmParamId;
    }

    public String getModelCode() {
        return modelCode;
    }

    public void setModelCode(String modelCode) {
        this.modelCode = modelCode;
    }

    public String getEqCode() {
        return eqCode;
    }

    public void setEqCode(String eqCode) {
        this.eqCode = eqCode;
    }

    public String getEqName() {
        return eqName;
    }

    public void setEqName(String eqName) {
        this.eqName = eqName;
    }

    public String getParamName() {
        return paramName;
    }

    public void setParamName(String paramName) {
        this.paramName = paramName;
    }

    public String getParamPromptName() {
        return paramPromptName;
    }

    public void setParamPromptName(String paramPromptName) {
        this.paramPromptName = paramPromptName;
    }
    
    

    public String getParamUnit() {
        return paramUnit;
    }

    public void setParamUnit(String paramUnit) {
        this.paramUnit = paramUnit;
    }
    
    

    public String getEqId() {
		return eqId;
	}

	public void setEqId(String eqId) {
		this.eqId = eqId;
	}

    public Date getProcessTime() {
        return processTime;
    }

    public void setProcessTime(Date processTime) {
        this.processTime = processTime;
    }

    public Integer getDuration() {
        return duration;
    }

    public void setDuration(Integer duration) {
        this.duration = duration;
    }

    @Override
	protected Serializable pkVal() {
		return this.pkId;
	}

}
